package com.gmscosmo.janus.echarts;

import java.util.Arrays;

public class Link {
    private String source;
    private String target;
    private int[] symbolSize = new int[]{5,20};
    private Label label;
    private LineStyle lineStyle;

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public int[] getSymbolSize() {
        return symbolSize;
    }

    public void setSymbolSize(int[] symbolSize) {
        this.symbolSize = symbolSize;
    }

    public Label getLabel() {
        return label;
    }

    public void setLabel(Label label) {
        this.label = label;
    }

    public LineStyle getLineStyle() {
        return lineStyle;
    }

    public void setLineStyle(LineStyle lineStyle) {
        this.lineStyle = lineStyle;
    }

    @Override
    public String toString() {
        return "{" +"\n"+
                "  source:'" + source + '\'' +",\n"+
                "  target:'" + target + '\'' +",\n"+
                "  symbolSize:" + Arrays.toString(symbolSize) +",\n"+
                "  label:" + label +",\n"+
                "  lineStyle:" + lineStyle +"\n"+
                '}';
    }
}
